<template>
  <view class="settingList">
    <nut-cell
      size="large"
      center
      round-radius="10px"
      is-link
      @click="userLogout"
    >
      <template v-slot:default>
        <view class="ItemLogout">
          <text>退出登录</text>
        </view>
      </template>
    </nut-cell>
  </view>
</template>

<script lang="ts" setup>
import {} from "vue";
import Taro from "@tarojs/taro";
import { Router, NavigateType } from "tarojs-router-next";
import { useUserStore } from "@/store/user";
const user = useUserStore();
function userLogout() {
  user.logout();
}
</script>

<style lang="scss">
.settingList {
  margin: 0 20px;
}
.ItemLogout {
  width: 100%;
  display: flex;
  justify-content: center;
}
</style>
